/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GUIPanel.java
 *
 * Created on Oct 25, 2011, 10:00:24 AM
 */
package GUILayer;


import CTRLayer.*;
import ModelLayer.*;
import java.awt.Image;
import java.awt.Toolkit;
import java.util.ArrayList;
import javax.swing.DefaultListModel;

/**
 *
 * @author Johannes
 */
public class GUIPanel extends javax.swing.JPanel {

   private CtrSale ctrSaleOrder;
   private CtrCustomer ctrCustomer;
   private CtrProduct ctrProduct;
   private CtrSupplier ctrSupplier;
   
   private ArrayList<SalesOrder> listOrder;
   private ArrayList<Product> listProduct;
   private ArrayList<Product> listProductView;
   private ArrayList<Customer> listCustomerView;
   
   private int orderId;
    
    public GUIPanel() 
    {   

        initComponents();
        ctrSaleOrder = new CtrSale();
        ctrCustomer = new CtrCustomer();
        ctrProduct = new CtrProduct();
        ctrSupplier = new CtrSupplier();
        orderId = 1;
        

        listProductView = new ArrayList<Product>();
        
        if (ddlOrder.getSelectedIndex() == 0)
        {
            OrdreNewPanel.setVisible(true);
            OrdreUpdatePanel.setVisible(false);
            startOrderInsert();
        }
        else
        {
            OrdreNewPanel.setVisible(false);
            OrdreUpdatePanel.setVisible(true);
            startOrderUpdate();
        }

    }
    private void bindStatus()
    {
        ddlStatusNew.add("Igangværende");
        ddlStatusNew.add("Færdig");
    }
    
    private void startOrderInsert()
    {
        bindOrder();
        bindProduct();
        bindStatus();
    }
    
    private void startOrderUpdate()
    {
        bindOrder();
        bindProduct();
        bindStatus();
    }
    
    private void bindOrder()
    {
        listOrder = ctrSaleOrder.getAllOrders();
        
        ddlOrder.add("Ny Ordre");
        
        for (int i = 0; i < listOrder.size(); i++) 
        {
            ddlOrder.add(listOrder.get(i).getSalesDate());
        }
        
      //  orderId = listOrder.get(ddlOrder.getSelectedIndex() - 1).getCustomerID();
       
    }
    
    private void bindProduct()
    {
        listProduct = ctrProduct.getAllProducts();
        
        ddlProduct.add("Nyt Produkt");
        
        for (int i = 0; i < listProduct.size(); i++) 
        {
            ddlProduct.add(listProduct.get(i).getName());
        }
    }
    
    private void bindProductView()
    {
        for (int i = 0; i < listProductView.size(); i++) 
        {
            lstProductOverviewNew.add(listProduct.get(i).getName(), this);
        }
    }
    
    private void addProductView()
    {
        listProductView.add(listProduct.get(ddlProduct.getSelectedIndex() - 1));
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        OrderPanel = new javax.swing.JPanel();
        ddlOrder = new java.awt.Choice();
        jLabel1 = new javax.swing.JLabel();
        OrderPane = new javax.swing.JLayeredPane();
        OrdreNewPanel = new javax.swing.JPanel();
        lblDeliveryNew = new javax.swing.JLabel();
        lblAmountNew = new javax.swing.JLabel();
        txtDeliveryDate = new javax.swing.JTextField();
        txtAmount = new javax.swing.JTextField();
        ddlStatusNew = new java.awt.Choice();
        lblStatusNew = new javax.swing.JLabel();
        lblCustomerNew = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        lstChooseCNew = new javax.swing.JList();
        txtFindCustomerNew = new javax.swing.JTextField();
        lblCustomerNew1 = new javax.swing.JLabel();
        btnOrdreInsert = new javax.swing.JButton();
        btnFindNew = new javax.swing.JButton();
        btnAddProductNew = new javax.swing.JButton();
        lblCustomerNew4 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        lstProductOverviewNew = new javax.swing.JList();
        lblCustomerNew5 = new javax.swing.JLabel();
        ddlStatusNew1 = new java.awt.Choice();
        btnRemoveProductNew = new javax.swing.JButton();
        OrdreUpdatePanel = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        lstProductOverviewUpdate = new javax.swing.JList();
        lblCustomerNew6 = new javax.swing.JLabel();
        btnAddProductUpdate = new javax.swing.JButton();
        lblAmountNew1 = new javax.swing.JLabel();
        btnFindNew1 = new javax.swing.JButton();
        lblDeliveryNew1 = new javax.swing.JLabel();
        ddlStatusUpdate = new java.awt.Choice();
        lblStatusNew1 = new javax.swing.JLabel();
        lblCustomerNew2 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        lstChooseCUpdate = new javax.swing.JList();
        txtAmountUpdate = new javax.swing.JTextField();
        txtDeliveryDateUpdate = new javax.swing.JTextField();
        btnOrdreUpdate = new javax.swing.JButton();
        txtFindCustomerUpdate = new javax.swing.JTextField();
        lblCustomerNew3 = new javax.swing.JLabel();
        btnRemoveProductUpdate = new javax.swing.JButton();
        lblCustomerNew7 = new javax.swing.JLabel();
        ddlPickProductUpdate = new java.awt.Choice();
        CustomerPanel = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        ddlCustomer = new java.awt.Choice();
        CustomerPane = new javax.swing.JLayeredPane();
        CustomerInsertPanel = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        txtCityNew = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        txtPhoneNew = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        txtNameNew = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        txtAddressNew = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        txtNameNew1 = new javax.swing.JTextField();
        btnInsertCustomer = new javax.swing.JButton();
        txtCustomerID = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        jCheckBox1 = new javax.swing.JCheckBox();
        jLabel26 = new javax.swing.JLabel();
        txtCvrOpretNew = new javax.swing.JTextField();
        CustomerUpdatePanel = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        txtCityUpdate = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        txtPhoneUpdate = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        txtNameUpdate = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        txtAddressUpdate = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        txtZipUpdate = new javax.swing.JTextField();
        btnUpdateCustomer = new javax.swing.JButton();
        btnDeleteCustomer = new javax.swing.JButton();
        jLabel27 = new javax.swing.JLabel();
        txtCvrUpdate = new javax.swing.JTextField();
        ProductPanel = new javax.swing.JPanel();
        ddlProduct = new java.awt.Choice();
        jLabel2 = new javax.swing.JLabel();
        ProductPane = new javax.swing.JLayeredPane();
        ProductNewPanel = new javax.swing.JPanel();
        lblCustomerNew8 = new javax.swing.JLabel();
        txtProductName = new javax.swing.JTextField();
        btnProductCreate = new javax.swing.JButton();
        btnProductCancel = new javax.swing.JButton();
        txtProductPurchasePrice = new javax.swing.JTextField();
        lblCustomerNew9 = new javax.swing.JLabel();
        lblCustomerNew10 = new javax.swing.JLabel();
        txtProductSalesPrice = new javax.swing.JTextField();
        lblCustomerNew11 = new javax.swing.JLabel();
        txtProductRentPrice = new javax.swing.JTextField();
        lblCustomerNew16 = new javax.swing.JLabel();
        txtProductOrigin = new javax.swing.JTextField();
        chkNewClothing = new javax.swing.JCheckBox();
        lblCustomerNew18 = new javax.swing.JLabel();
        txtProductSize = new javax.swing.JTextField();
        lblCustomerNew19 = new javax.swing.JLabel();
        txtProductColour = new javax.swing.JTextField();
        txtProductDescription = new javax.swing.JTextField();
        lblCustomerNew20 = new javax.swing.JLabel();
        txtProductType = new javax.swing.JTextField();
        lblCustomerNew21 = new javax.swing.JLabel();
        chkNewEquipment = new javax.swing.JCheckBox();
        txtProductCalibre = new javax.swing.JTextField();
        lblCustomerNew22 = new javax.swing.JLabel();
        txtProductFabric = new javax.swing.JTextField();
        lblCustomerNew23 = new javax.swing.JLabel();
        chkNewGunReplicas = new javax.swing.JCheckBox();
        lblCustomerNew37 = new javax.swing.JLabel();
        txtProductLeverandørID = new javax.swing.JTextField();
        lblCustomerNew38 = new javax.swing.JLabel();
        txtProductProductID = new javax.swing.JTextField();
        productUpdatePanel = new javax.swing.JPanel();
        lblCustomerNew24 = new javax.swing.JLabel();
        txtProductUpdateRentPrice = new javax.swing.JTextField();
        chkUpdateGunReplicas = new javax.swing.JCheckBox();
        lblCustomerNew17 = new javax.swing.JLabel();
        lblCustomerNew25 = new javax.swing.JLabel();
        txtProductUpdateSalesPrice = new javax.swing.JTextField();
        txtProductUpdateFabric = new javax.swing.JTextField();
        lblCustomerNew12 = new javax.swing.JLabel();
        lblCustomerNew14 = new javax.swing.JLabel();
        lblCustomerNew15 = new javax.swing.JLabel();
        btnProductUpdateDelete = new javax.swing.JButton();
        txtProductUpdatePurchasePrice = new javax.swing.JTextField();
        txtProductUpdateOrigin = new javax.swing.JTextField();
        btnProductUpdate = new javax.swing.JButton();
        txtProductUpdateName = new javax.swing.JTextField();
        lblCustomerNew26 = new javax.swing.JLabel();
        txtProductUpdateCalibre = new javax.swing.JTextField();
        chkUpdateEquipment = new javax.swing.JCheckBox();
        txtProductUpdateColour = new javax.swing.JTextField();
        txtProductUpdateDescription = new javax.swing.JTextField();
        lblCustomerNew27 = new javax.swing.JLabel();
        txtProductUpdateType = new javax.swing.JTextField();
        chkUpdateCloth = new javax.swing.JCheckBox();
        lblCustomerNew28 = new javax.swing.JLabel();
        txtProductUpdateSize = new javax.swing.JTextField();
        lblCustomerNew29 = new javax.swing.JLabel();
        lblCustomerNew30 = new javax.swing.JLabel();
        txtProductUpdateSupplier = new javax.swing.JTextField();
        lblCustomerNew31 = new javax.swing.JLabel();
        txtProductUpdateProduct = new javax.swing.JTextField();
        lblCustomerNew36 = new javax.swing.JLabel();
        txtProductUpdateMinStock = new javax.swing.JTextField();
        lblCustomerNew39 = new javax.swing.JLabel();
        btnProductUpdateClear = new javax.swing.JButton();
        SupplierPanel = new javax.swing.JPanel();
        ddlSupplier = new java.awt.Choice();
        jLabel14 = new javax.swing.JLabel();
        SupplierPane = new javax.swing.JLayeredPane();
        SupplierNewPanel = new javax.swing.JPanel();
        btnAddSupplierNew = new javax.swing.JButton();
        lblCustomerNew32 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        lstSupplierOverviewNew1 = new javax.swing.JList();
        lblCustomerNew33 = new javax.swing.JLabel();
        ddlSupplierChooseNew = new java.awt.Choice();
        btnRemoveProductSupNew = new javax.swing.JButton();
        jLabel15 = new javax.swing.JLabel();
        txtSupplierNavnNew = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        txtSupplierAdressNew = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        txtSupplierCountryNew = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        txtSupplierPhoneNew = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        txtSupplierEmailNew = new javax.swing.JTextField();
        btnInsertSupplierNew = new javax.swing.JButton();
        btnCancelSupplierUpdate = new javax.swing.JButton();
        SupplierUpdatePanel = new javax.swing.JPanel();
        txtSupplierAdressUpdate = new javax.swing.JTextField();
        txtSupplierCountryUpdate = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        txtSupplierPhoneUpdate = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        txtSupplierEmailUpdate = new javax.swing.JTextField();
        jLabel22 = new javax.swing.JLabel();
        btnCancelUpdate = new javax.swing.JButton();
        btnSupplierUpdate = new javax.swing.JButton();
        jLabel23 = new javax.swing.JLabel();
        ddlSupplierChooseUpdate = new java.awt.Choice();
        lblCustomerNew34 = new javax.swing.JLabel();
        btnRemoveSupplierUpdate = new javax.swing.JButton();
        txtSupplierNavnUpdate = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jScrollPane7 = new javax.swing.JScrollPane();
        lstSupplierOverviewUpdate = new javax.swing.JList();
        lblCustomerNew35 = new javax.swing.JLabel();
        btnAddSupplierUpdate = new javax.swing.JButton();
        HelpPanel = new javax.swing.JPanel();

        jTabbedPane1.setName("Ordre"); // NOI18N

        ddlOrder.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                ddlOrderItemStateChanged(evt);
            }
        });

        jLabel1.setText("Vælg ordre");

        lblDeliveryNew.setText("Leveringsdato");

        lblAmountNew.setText("Antal");

        lblStatusNew.setText("Status");

        lblCustomerNew.setText("Find Kunde");

        lstChooseCNew.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane1.setViewportView(lstChooseCNew);

        lblCustomerNew1.setText("Vælg Kunde");

        btnOrdreInsert.setText("Opret");

        btnFindNew.setText("Søg");
        btnFindNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnFindNewActionPerformed(evt);
            }
        });

        btnAddProductNew.setText("Tilføj");
        btnAddProductNew.setActionCommand("");
        btnAddProductNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddProductNewActionPerformed(evt);
            }
        });

        lblCustomerNew4.setText("Vælg Vare");

        lstProductOverviewNew.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane3.setViewportView(lstProductOverviewNew);

        lblCustomerNew5.setText("Vareoversigt");

        btnRemoveProductNew.setText("Fjern Produkt");

        javax.swing.GroupLayout OrdreNewPanelLayout = new javax.swing.GroupLayout(OrdreNewPanel);
        OrdreNewPanel.setLayout(OrdreNewPanelLayout);
        OrdreNewPanelLayout.setHorizontalGroup(
            OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(lblCustomerNew)
                        .addComponent(lblCustomerNew1)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OrdreNewPanelLayout.createSequentialGroup()
                            .addComponent(txtFindCustomerNew)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnFindNew))
                        .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                            .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(txtDeliveryDate)
                                .addComponent(lblDeliveryNew, javax.swing.GroupLayout.Alignment.LEADING))
                            .addGap(26, 26, 26)
                            .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(ddlStatusNew, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(lblStatusNew)))
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnOrdreInsert))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                    .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew5, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                        .addGap(61, 61, 61))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OrdreNewPanelLayout.createSequentialGroup()
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ddlStatusNew1, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblAmountNew)
                            .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                                .addComponent(txtAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnAddProductNew))))
                    .addComponent(btnRemoveProductNew))
                .addContainerGap())
        );
        OrdreNewPanelLayout.setVerticalGroup(
            OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblAmountNew)
                            .addComponent(lblCustomerNew4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btnAddProductNew)
                                .addComponent(txtAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(ddlStatusNew1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(OrdreNewPanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtFindCustomerNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnFindNew))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblDeliveryNew)
                            .addComponent(lblStatusNew))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtDeliveryDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ddlStatusNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(OrdreNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnRemoveProductNew)
                    .addComponent(btnOrdreInsert))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        OrdreNewPanel.setBounds(0, 0, 380, 200);
        OrderPane.add(OrdreNewPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lstProductOverviewUpdate.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane4.setViewportView(lstProductOverviewUpdate);

        lblCustomerNew6.setText("Vælg Vare");

        btnAddProductUpdate.setText("Tilføj");
        btnAddProductUpdate.setActionCommand("");
        btnAddProductUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddProductUpdateActionPerformed(evt);
            }
        });

        lblAmountNew1.setText("Antal");

        btnFindNew1.setText("Søg");

        lblDeliveryNew1.setText("Leveringsdato");

        lblStatusNew1.setText("Status");

        lblCustomerNew2.setText("Find Kunde");

        lstChooseCUpdate.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane2.setViewportView(lstChooseCUpdate);

        btnOrdreUpdate.setText("Opdater");
        btnOrdreUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnOrdreUpdateActionPerformed(evt);
            }
        });

        lblCustomerNew3.setText("Vælg Kunde");

        btnRemoveProductUpdate.setText("Fjern Produkt");

        lblCustomerNew7.setText("Vareoversigt");

        javax.swing.GroupLayout OrdreUpdatePanelLayout = new javax.swing.GroupLayout(OrdreUpdatePanel);
        OrdreUpdatePanel.setLayout(OrdreUpdatePanelLayout);
        OrdreUpdatePanelLayout.setHorizontalGroup(
            OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(lblCustomerNew2)
                        .addComponent(lblCustomerNew3)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OrdreUpdatePanelLayout.createSequentialGroup()
                            .addComponent(txtFindCustomerUpdate)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(btnFindNew1))
                        .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                            .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(txtDeliveryDateUpdate)
                                .addComponent(lblDeliveryNew1, javax.swing.GroupLayout.Alignment.LEADING))
                            .addGap(26, 26, 26)
                            .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(ddlStatusUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(lblStatusNew1)))
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(btnOrdreUpdate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                    .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew7, javax.swing.GroupLayout.DEFAULT_SIZE, 192, Short.MAX_VALUE)
                        .addGap(61, 61, 61))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, OrdreUpdatePanelLayout.createSequentialGroup()
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(ddlPickProductUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblAmountNew1)
                            .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                                .addComponent(txtAmountUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnAddProductUpdate))))
                    .addComponent(btnRemoveProductUpdate))
                .addContainerGap())
        );
        OrdreUpdatePanelLayout.setVerticalGroup(
            OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblAmountNew1)
                            .addComponent(lblCustomerNew6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(btnAddProductUpdate)
                                .addComponent(txtAmountUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(ddlPickProductUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(OrdreUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtFindCustomerUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnFindNew1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblDeliveryNew1)
                            .addComponent(lblStatusNew1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(txtDeliveryDateUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(ddlStatusUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(OrdreUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnRemoveProductUpdate)
                    .addComponent(btnOrdreUpdate))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        OrdreUpdatePanel.setBounds(0, 0, 380, 200);
        OrderPane.add(OrdreUpdatePanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout OrderPanelLayout = new javax.swing.GroupLayout(OrderPanel);
        OrderPanel.setLayout(OrderPanelLayout);
        OrderPanelLayout.setHorizontalGroup(
            OrderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrderPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OrderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(OrderPane, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)
                    .addComponent(jLabel1)
                    .addComponent(ddlOrder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        OrderPanelLayout.setVerticalGroup(
            OrderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OrderPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ddlOrder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(OrderPane, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Ordre", OrderPanel);

        jLabel3.setText("Vælg Kunde");

        jLabel4.setText("By");

        jLabel5.setText("Telefonnummer");

        jLabel6.setText("Navn");

        jLabel7.setText("Adresse");

        jLabel8.setText("Postnummer");

        btnInsertCustomer.setText("Opret");
        btnInsertCustomer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnInsertCustomerActionPerformed(evt);
            }
        });

        jLabel25.setText("KundeID");

        jCheckBox1.setText("Firma");
        jCheckBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox1ActionPerformed(evt);
            }
        });

        jLabel26.setText("Cvr");

        javax.swing.GroupLayout CustomerInsertPanelLayout = new javax.swing.GroupLayout(CustomerInsertPanel);
        CustomerInsertPanel.setLayout(CustomerInsertPanelLayout);
        CustomerInsertPanelLayout.setHorizontalGroup(
            CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                        .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(351, 351, 351))
                    .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                        .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel7)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(txtNameNew, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel6))
                                .addComponent(txtAddressNew, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(txtNameNew1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnInsertCustomer)
                            .addComponent(jCheckBox1))
                        .addGap(6, 6, 6)
                        .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(txtCustomerID)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5)
                            .addComponent(txtCityNew, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                            .addComponent(txtPhoneNew)
                            .addComponent(jLabel25)
                            .addComponent(jLabel26)
                            .addComponent(txtCvrOpretNew))
                        .addContainerGap(132, Short.MAX_VALUE))))
        );
        CustomerInsertPanelLayout.setVerticalGroup(
            CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNameNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtAddressNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(jLabel25))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                        .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtNameNew1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtCustomerID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(CustomerInsertPanelLayout.createSequentialGroup()
                        .addComponent(jLabel4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCityNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtPhoneNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(48, 48, 48)))
                .addGap(27, 27, 27)
                .addComponent(jLabel26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(CustomerInsertPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtCvrOpretNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jCheckBox1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnInsertCustomer)
                .addContainerGap())
        );

        CustomerInsertPanel.setBounds(0, 0, 420, 210);
        CustomerPane.add(CustomerInsertPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel9.setText("By");

        jLabel10.setText("Telefonnummer");

        jLabel11.setText("Navn");

        jLabel12.setText("Adresse");

        jLabel13.setText("Postnummer");

        btnUpdateCustomer.setText("Opdater");
        btnUpdateCustomer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnUpdateCustomerActionPerformed(evt);
            }
        });

        btnDeleteCustomer.setText("Slet");
        btnDeleteCustomer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeleteCustomerActionPerformed(evt);
            }
        });

        jLabel27.setText("Cvr");

        javax.swing.GroupLayout CustomerUpdatePanelLayout = new javax.swing.GroupLayout(CustomerUpdatePanel);
        CustomerUpdatePanel.setLayout(CustomerUpdatePanelLayout);
        CustomerUpdatePanelLayout.setHorizontalGroup(
            CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtNameUpdate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                            .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtAddressUpdate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                            .addComponent(txtZipUpdate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel27)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(txtCityUpdate, javax.swing.GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
                            .addComponent(txtPhoneUpdate)
                            .addComponent(txtCvrUpdate)))
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addComponent(btnUpdateCustomer)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnDeleteCustomer)))
                .addContainerGap(122, Short.MAX_VALUE))
        );
        CustomerUpdatePanelLayout.setVerticalGroup(
            CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCityUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtPhoneUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtNameUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtAddressUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtZipUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(CustomerUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnUpdateCustomer)
                            .addComponent(btnDeleteCustomer)))
                    .addGroup(CustomerUpdatePanelLayout.createSequentialGroup()
                        .addComponent(jLabel27)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtCvrUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(33, Short.MAX_VALUE))
        );

        CustomerUpdatePanel.setBounds(0, 0, 420, 210);
        CustomerPane.add(CustomerUpdatePanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout CustomerPanelLayout = new javax.swing.GroupLayout(CustomerPanel);
        CustomerPanel.setLayout(CustomerPanelLayout);
        CustomerPanelLayout.setHorizontalGroup(
            CustomerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CustomerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ddlCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addContainerGap(310, Short.MAX_VALUE))
            .addComponent(CustomerPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 443, Short.MAX_VALUE)
        );
        CustomerPanelLayout.setVerticalGroup(
            CustomerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CustomerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ddlCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(CustomerPane, javax.swing.GroupLayout.DEFAULT_SIZE, 334, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("Kunder", CustomerPanel);

        jLabel2.setText("Vælg Produkt Option");

        lblCustomerNew8.setText("Navn (produkt)");

        btnProductCreate.setText("Opret");

        btnProductCancel.setText("Annuller");
        btnProductCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductCancelActionPerformed(evt);
            }
        });

        lblCustomerNew9.setText("Købspris");

        lblCustomerNew10.setText("Salgspris");

        lblCustomerNew11.setText("Udlejningspris");

        lblCustomerNew16.setText("Produceret i");

        buttonGroup2.add(chkNewClothing);
        chkNewClothing.setText("Beklædning");
        chkNewClothing.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkNewClothingActionPerformed(evt);
            }
        });

        lblCustomerNew18.setText("Størrelse");

        lblCustomerNew19.setText("Farve");

        lblCustomerNew20.setText("Beskrivelse");

        lblCustomerNew21.setText("Type");

        buttonGroup2.add(chkNewEquipment);
        chkNewEquipment.setText("Udstyr");
        chkNewEquipment.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkNewEquipmentActionPerformed(evt);
            }
        });

        lblCustomerNew22.setText("Kaliber");

        lblCustomerNew23.setText("Stof/producent");

        buttonGroup2.add(chkNewGunReplicas);
        chkNewGunReplicas.setText("Pistol-kopier");
        chkNewGunReplicas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkNewGunReplicasActionPerformed(evt);
            }
        });

        lblCustomerNew37.setText("LeverandørID");

        lblCustomerNew38.setText("ProductID");

        javax.swing.GroupLayout ProductNewPanelLayout = new javax.swing.GroupLayout(ProductNewPanel);
        ProductNewPanel.setLayout(ProductNewPanelLayout);
        ProductNewPanelLayout.setHorizontalGroup(
            ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProductNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCustomerNew8)
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtProductName, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew10)
                            .addComponent(txtProductSalesPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew11)
                            .addComponent(txtProductRentPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew9)
                            .addComponent(txtProductPurchasePrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew16)
                            .addComponent(txtProductOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(107, 107, 107)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(ProductNewPanelLayout.createSequentialGroup()
                                .addComponent(chkNewClothing)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblCustomerNew18)
                                    .addComponent(txtProductSize, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblCustomerNew19)
                                    .addComponent(txtProductColour, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(ProductNewPanelLayout.createSequentialGroup()
                                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkNewGunReplicas)
                                    .addComponent(chkNewEquipment))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblCustomerNew23)
                                            .addComponent(txtProductFabric, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblCustomerNew37)
                                            .addComponent(txtProductLeverandørID, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(txtProductCalibre, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(lblCustomerNew22))
                                            .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(lblCustomerNew38)
                                                .addComponent(txtProductProductID, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblCustomerNew21)
                                            .addComponent(txtProductType, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtProductDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblCustomerNew20)))))))
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addComponent(btnProductCreate)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnProductCancel)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        ProductNewPanelLayout.setVerticalGroup(
            ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProductNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew19)
                            .addComponent(lblCustomerNew18))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductColour, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkNewClothing)))
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ProductNewPanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductPurchasePrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductSalesPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, ProductNewPanelLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(chkNewEquipment)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                        .addComponent(chkNewGunReplicas))
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew20)
                            .addComponent(lblCustomerNew21))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew22)
                            .addComponent(lblCustomerNew23))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductCalibre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductFabric, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(ProductNewPanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductRentPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnProductCancel)
                            .addComponent(btnProductCreate)))
                    .addGroup(ProductNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(ProductNewPanelLayout.createSequentialGroup()
                            .addComponent(lblCustomerNew38)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtProductProductID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(ProductNewPanelLayout.createSequentialGroup()
                            .addComponent(lblCustomerNew37)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtProductLeverandørID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(57, 57, 57))
        );

        ProductNewPanel.setBounds(0, 0, 380, 200);
        ProductPane.add(ProductNewPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        lblCustomerNew24.setText("Stof/producent");

        buttonGroup1.add(chkUpdateGunReplicas);
        chkUpdateGunReplicas.setText("Pistol-kopier");
        chkUpdateGunReplicas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkUpdateGunReplicasActionPerformed(evt);
            }
        });

        lblCustomerNew17.setText("Produceret i");

        lblCustomerNew25.setText("Kaliber");

        lblCustomerNew12.setText("Udlejningspris");

        lblCustomerNew14.setText("Købspris");

        lblCustomerNew15.setText("Salgspris");

        btnProductUpdateDelete.setText("Slet product");
        btnProductUpdateDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductUpdateDeleteActionPerformed(evt);
            }
        });

        btnProductUpdate.setText("Opdatere");
        btnProductUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductUpdateActionPerformed(evt);
            }
        });

        lblCustomerNew26.setText("Navn");

        buttonGroup1.add(chkUpdateEquipment);
        chkUpdateEquipment.setText("Udstyr");
        chkUpdateEquipment.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkUpdateEquipmentActionPerformed(evt);
            }
        });

        lblCustomerNew27.setText("Beskrivelse");

        buttonGroup1.add(chkUpdateCloth);
        chkUpdateCloth.setText("Beklædning");
        chkUpdateCloth.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                chkUpdateClothActionPerformed(evt);
            }
        });

        lblCustomerNew28.setText("Størrelse");

        lblCustomerNew29.setText("Farve");

        lblCustomerNew30.setText("Type");

        lblCustomerNew31.setText("LeverandørID");

        lblCustomerNew36.setText("ProductID");

        lblCustomerNew39.setText("Minimum Lager");

        btnProductUpdateClear.setText("Ryd felter");
        btnProductUpdateClear.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductUpdateClearActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout productUpdatePanelLayout = new javax.swing.GroupLayout(productUpdatePanel);
        productUpdatePanel.setLayout(productUpdatePanelLayout);
        productUpdatePanelLayout.setHorizontalGroup(
            productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(productUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblCustomerNew26)
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtProductUpdateName, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew15)
                            .addComponent(txtProductUpdateSalesPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew12)
                            .addComponent(txtProductUpdateRentPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew14)
                            .addComponent(txtProductUpdatePurchasePrice, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblCustomerNew17)
                            .addComponent(txtProductUpdateOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(107, 107, 107)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(productUpdatePanelLayout.createSequentialGroup()
                                .addComponent(chkUpdateCloth)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblCustomerNew28)
                                    .addComponent(txtProductUpdateSize, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lblCustomerNew29)
                                    .addComponent(txtProductUpdateColour, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(productUpdatePanelLayout.createSequentialGroup()
                                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(chkUpdateGunReplicas)
                                    .addComponent(chkUpdateEquipment))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblCustomerNew24)
                                            .addComponent(txtProductUpdateFabric, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(txtProductUpdateSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblCustomerNew31)
                                            .addComponent(txtProductUpdateMinStock, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblCustomerNew39))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(txtProductUpdateCalibre, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(lblCustomerNew25))
                                            .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                .addComponent(txtProductUpdateProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addComponent(lblCustomerNew36))))
                                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lblCustomerNew30)
                                            .addComponent(txtProductUpdateType, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(txtProductUpdateDescription, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblCustomerNew27)))))))
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(btnProductUpdate)
                        .addGap(10, 10, 10)
                        .addComponent(btnProductUpdateDelete)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnProductUpdateClear)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        productUpdatePanelLayout.setVerticalGroup(
            productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(productUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew29)
                            .addComponent(lblCustomerNew28))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductUpdateSize, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductUpdateColour, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(chkUpdateCloth)))
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew26)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdateName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdatePurchasePrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdateSalesPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, productUpdatePanelLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(chkUpdateEquipment)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                        .addComponent(chkUpdateGunReplicas))
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew27)
                            .addComponent(lblCustomerNew30))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductUpdateDescription, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductUpdateType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew25)
                            .addComponent(lblCustomerNew24))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductUpdateCalibre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductUpdateFabric, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblCustomerNew12)
                            .addComponent(lblCustomerNew31))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(txtProductUpdateRentPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtProductUpdateSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdateProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdateOrigin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(productUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnProductUpdateDelete)
                            .addComponent(btnProductUpdate)
                            .addComponent(btnProductUpdateClear)))
                    .addGroup(productUpdatePanelLayout.createSequentialGroup()
                        .addComponent(lblCustomerNew39)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtProductUpdateMinStock, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(11, 11, 11))
        );

        productUpdatePanel.setBounds(0, 0, 380, 200);
        ProductPane.add(productUpdatePanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout ProductPanelLayout = new javax.swing.GroupLayout(ProductPanel);
        ProductPanel.setLayout(ProductPanelLayout);
        ProductPanelLayout.setHorizontalGroup(
            ProductPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProductPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(ProductPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(ProductPane, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)
                    .addGroup(ProductPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(ddlProduct, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        ProductPanelLayout.setVerticalGroup(
            ProductPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(ProductPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ddlProduct, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ProductPane, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Produkter", ProductPanel);
        ProductPanel.getAccessibleContext().setAccessibleName("");

        jLabel14.setText("Vælg Leverandør");

        btnAddSupplierNew.setText("Tilføj");
        btnAddSupplierNew.setActionCommand("");
        btnAddSupplierNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddSupplierNewActionPerformed(evt);
            }
        });

        lblCustomerNew32.setText("Vælg Vare");

        lstSupplierOverviewNew1.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane6.setViewportView(lstSupplierOverviewNew1);

        lblCustomerNew33.setText("Vareoversigt");

        btnRemoveProductSupNew.setText("Fjern Produkt");

        jLabel15.setText("Navn");

        jLabel16.setText("Adresse");

        jLabel17.setText("Land");

        jLabel18.setText("Tlf");

        jLabel19.setText("Email");

        btnInsertSupplierNew.setText("Opret");

        btnCancelSupplierUpdate.setText("Annullere");

        javax.swing.GroupLayout SupplierNewPanelLayout = new javax.swing.GroupLayout(SupplierNewPanel);
        SupplierNewPanel.setLayout(SupplierNewPanelLayout);
        SupplierNewPanelLayout.setHorizontalGroup(
            SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                        .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel15)
                            .addComponent(jLabel16)
                            .addComponent(jLabel17)
                            .addComponent(jLabel18)
                            .addComponent(jLabel19)
                            .addComponent(txtSupplierNavnNew, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                            .addComponent(txtSupplierAdressNew)
                            .addComponent(txtSupplierCountryNew)
                            .addComponent(txtSupplierPhoneNew)
                            .addComponent(txtSupplierEmailNew))
                        .addGap(38, 38, 38)
                        .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                            .addComponent(btnRemoveProductSupNew)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, SupplierNewPanelLayout.createSequentialGroup()
                                .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, SupplierNewPanelLayout.createSequentialGroup()
                                        .addComponent(lblCustomerNew32)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE))
                                    .addComponent(ddlSupplierChooseNew, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
                                    .addComponent(lblCustomerNew33, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE))
                                .addComponent(btnAddSupplierNew))))
                    .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                        .addComponent(btnInsertSupplierNew)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCancelSupplierUpdate)))
                .addContainerGap())
        );
        SupplierNewPanelLayout.setVerticalGroup(
            SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCustomerNew32)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                        .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnAddSupplierNew)
                            .addComponent(ddlSupplierChooseNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew33)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnRemoveProductSupNew))
                    .addGroup(SupplierNewPanelLayout.createSequentialGroup()
                        .addComponent(txtSupplierNavnNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierAdressNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierCountryNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierPhoneNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierEmailNew, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(SupplierNewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnInsertSupplierNew)
                    .addComponent(btnCancelSupplierUpdate))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        SupplierNewPanel.setBounds(0, 0, 380, 200);
        SupplierPane.add(SupplierNewPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel20.setText("Land");

        jLabel21.setText("Tlf");

        jLabel22.setText("Email");

        btnCancelUpdate.setText("Annullere");

        btnSupplierUpdate.setText("Opdatere");

        jLabel23.setText("Navn");

        lblCustomerNew34.setText("Vareoversigt");

        btnRemoveSupplierUpdate.setText("Fjern Produkt");

        jLabel24.setText("Adresse");

        lstSupplierOverviewUpdate.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane7.setViewportView(lstSupplierOverviewUpdate);

        lblCustomerNew35.setText("Vælg Vare");

        btnAddSupplierUpdate.setText("Tilføj");
        btnAddSupplierUpdate.setActionCommand("");
        btnAddSupplierUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAddSupplierUpdateActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout SupplierUpdatePanelLayout = new javax.swing.GroupLayout(SupplierUpdatePanel);
        SupplierUpdatePanel.setLayout(SupplierUpdatePanelLayout);
        SupplierUpdatePanelLayout.setHorizontalGroup(
            SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                        .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel23)
                            .addComponent(jLabel24)
                            .addComponent(jLabel20)
                            .addComponent(jLabel21)
                            .addComponent(jLabel22)
                            .addComponent(txtSupplierNavnUpdate, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE)
                            .addComponent(txtSupplierAdressUpdate)
                            .addComponent(txtSupplierCountryUpdate)
                            .addComponent(txtSupplierPhoneUpdate)
                            .addComponent(txtSupplierEmailUpdate))
                        .addGap(38, 38, 38)
                        .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                            .addComponent(btnRemoveSupplierUpdate)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, SupplierUpdatePanelLayout.createSequentialGroup()
                                .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, SupplierUpdatePanelLayout.createSequentialGroup()
                                        .addComponent(lblCustomerNew35)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 72, Short.MAX_VALUE))
                                    .addComponent(ddlSupplierChooseUpdate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)
                                    .addComponent(lblCustomerNew34, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE))
                                .addComponent(btnAddSupplierUpdate))))
                    .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                        .addComponent(btnSupplierUpdate)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnCancelUpdate)))
                .addContainerGap())
        );
        SupplierUpdatePanelLayout.setVerticalGroup(
            SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCustomerNew35)
                    .addComponent(jLabel23))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                        .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnAddSupplierUpdate)
                            .addComponent(ddlSupplierChooseUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblCustomerNew34)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnRemoveSupplierUpdate))
                    .addGroup(SupplierUpdatePanelLayout.createSequentialGroup()
                        .addComponent(txtSupplierNavnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel24)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierAdressUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierCountryUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierPhoneUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtSupplierEmailUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(SupplierUpdatePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnSupplierUpdate)
                    .addComponent(btnCancelUpdate))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        SupplierUpdatePanel.setBounds(0, 0, 380, 200);
        SupplierPane.add(SupplierUpdatePanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout SupplierPanelLayout = new javax.swing.GroupLayout(SupplierPanel);
        SupplierPanel.setLayout(SupplierPanelLayout);
        SupplierPanelLayout.setHorizontalGroup(
            SupplierPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(SupplierPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(SupplierPane, javax.swing.GroupLayout.DEFAULT_SIZE, 423, Short.MAX_VALUE)
                    .addComponent(jLabel14)
                    .addComponent(ddlSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        SupplierPanelLayout.setVerticalGroup(
            SupplierPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(SupplierPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ddlSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(SupplierPane, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Leverandør", SupplierPanel);
        SupplierPanel.getAccessibleContext().setAccessibleName("");

        javax.swing.GroupLayout HelpPanelLayout = new javax.swing.GroupLayout(HelpPanel);
        HelpPanel.setLayout(HelpPanelLayout);
        HelpPanelLayout.setHorizontalGroup(
            HelpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 443, Short.MAX_VALUE)
        );
        HelpPanelLayout.setVerticalGroup(
            HelpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 399, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Hjælp", HelpPanel);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 448, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 427, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.getAccessibleContext().setAccessibleName("Ordre");
    }// </editor-fold>//GEN-END:initComponents

    private void btnAddProductNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddProductNewActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAddProductNewActionPerformed

    private void btnAddProductUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddProductUpdateActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAddProductUpdateActionPerformed

    private void btnOrdreUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOrdreUpdateActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnOrdreUpdateActionPerformed

    private void btnProductCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductCancelActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnProductCancelActionPerformed

    private void chkNewClothingActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkNewClothingActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkNewClothingActionPerformed

    private void chkNewEquipmentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkNewEquipmentActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkNewEquipmentActionPerformed

    private void chkNewGunReplicasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkNewGunReplicasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkNewGunReplicasActionPerformed

    private void chkUpdateGunReplicasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkUpdateGunReplicasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkUpdateGunReplicasActionPerformed

    private void btnProductUpdateDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductUpdateDeleteActionPerformed

        CtrProduct ctrP = new CtrProduct();
	int id = Integer.parseInt(txtProductUpdateProduct.getText());
	int res = ctrP.deleteProduct(id);
    }//GEN-LAST:event_btnProductUpdateDeleteActionPerformed

    private void chkUpdateEquipmentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkUpdateEquipmentActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkUpdateEquipmentActionPerformed

    private void chkUpdateClothActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_chkUpdateClothActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_chkUpdateClothActionPerformed

    private void btnAddSupplierNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddSupplierNewActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAddSupplierNewActionPerformed

    private void btnAddSupplierUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAddSupplierUpdateActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAddSupplierUpdateActionPerformed

    private void btnProductUpdateClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductUpdateClearActionPerformed
                                         
        clearFields();
            // TODO add your handling code here:
    }//GEN-LAST:event_btnProductUpdateClearActionPerformed

    private void btnProductUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductUpdateActionPerformed
           
        CtrProduct ctrP = new CtrProduct();
	
        double size = 0;
        String colour = null;
        String type = null;
        String description = null;
        String fabric = null;
        double calibre = 0;       
        
        int productID = Integer.parseInt(txtProductUpdateProduct.getText());
      	String name = txtProductUpdateName.getText();
	double purchasePrice = Double.parseDouble(txtProductUpdatePurchasePrice.getText());
	double salesPrice = Double.parseDouble(txtProductUpdateSalesPrice.getText());
        double rentPrice = Double.parseDouble(txtProductUpdateRentPrice.getText());
        String CountryOfOrigin = txtProductUpdateOrigin.getText();
        int minStock = Integer.parseInt(txtProductUpdateMinStock.getText());
        
        
        if (chkUpdateCloth.isSelected())
        {
        size = Integer.parseInt(txtProductUpdateSize.getText());
        colour = txtProductUpdateColour.getText();    
        
        }
 
        if (chkUpdateEquipment.isSelected())
        {
        type = txtProductUpdateType.getText();
        description = txtProductUpdateDescription.getText();    
        }
        
        if (chkUpdateGunReplicas.isSelected())
        {
       
        fabric = txtProductUpdateFabric.getText();
        calibre = Double.parseDouble(txtProductUpdateCalibre.getText());          
        }
           
        int supplierID = Integer.parseInt(txtProductUpdateSupplier.getText());
        
	ctrP.updateProduct(productID, name, purchasePrice, rentPrice, salesPrice, CountryOfOrigin, minStock, size, colour, type, description, fabric, calibre, supplierID);


    }//GEN-LAST:event_btnProductUpdateActionPerformed

    private void btnDeleteCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeleteCustomerActionPerformed
CtrCustomer ctrCustom = new CtrCustomer();
        int id = Integer.parseInt(txtProductUpdateProduct.getText());
        int res = ctrCustom.deleteCustomer(id);
    }//GEN-LAST:event_btnDeleteCustomerActionPerformed

    private void btnUpdateCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnUpdateCustomerActionPerformed
 CtrCustomer ctrCust = new CtrCustomer();
                
        String name = txtNameUpdate.getText();
        String by = txtCityUpdate.getText();
        String adress = txtAddressUpdate.getText();
        int phoneNo = Integer.parseInt(txtPhoneUpdate.getText());
        int zipCode = Integer.parseInt(txtZipUpdate.getText());
        int cvr = Integer.parseInt(txtCvrUpdate.getText());
        
        ctrCust.updateCustomer(name, adress, zipCode, by, phoneNo, cvr);
    }//GEN-LAST:event_btnUpdateCustomerActionPerformed

    private void btnInsertCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInsertCustomerActionPerformed
CtrCustomer ctrC = new CtrCustomer();
        Customer custObj = new Customer();
        

        custObj.setName(txtNameNew.getText());
        custObj.setCity(txtCityNew.getText());
        custObj.setAddress(txtAddressNew.getText());
        custObj.setPhoneNo(Integer.parseInt(txtPhoneNew.getText()));
        custObj.setZipCode(Integer.parseInt(txtNameNew1.getText()));
        custObj.setCustomerID(Integer.parseInt(txtCustomerID.getText()));
        custObj.setCvr(Integer.parseInt(txtCvrOpretNew.getText()));
       
        ctrC.insertNewCostumer(custObj);
    }//GEN-LAST:event_btnInsertCustomerActionPerformed

    private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
   if(jCheckBox1.isSelected())
        {
            jLabel26.setEnabled(false);
            txtCvrOpretNew.setEnabled(false);
            
        }
        else
        {
            jLabel26.setEnabled(true);
            txtCvrOpretNew.setEnabled(true);
               
        }
        
    }//GEN-LAST:event_jCheckBox1ActionPerformed

    private void ddlOrderItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_ddlOrderItemStateChanged
if (ddlOrder.getSelectedIndex() == 0)
        {
            OrdreNewPanel.setVisible(true);
            OrdreUpdatePanel.setVisible(false);
        }
        else
        {
            OrdreNewPanel.setVisible(false);
            OrdreUpdatePanel.setVisible(true);
        }
    }//GEN-LAST:event_ddlOrderItemStateChanged

    private void btnFindNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnFindNewActionPerformed
    listCustomerView = ctrCustomer.searchCustomerNames(txtFindCustomerNew.getText());
    for (int i = 0; i < listCustomerView.size(); i++) 
        {
            lstChooseCNew.add(listCustomerView.get(i).getName(), this);
        }
    }//GEN-LAST:event_btnFindNewActionPerformed

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel CustomerInsertPanel;
    private javax.swing.JLayeredPane CustomerPane;
    private javax.swing.JPanel CustomerPanel;
    private javax.swing.JPanel CustomerUpdatePanel;
    private javax.swing.JPanel HelpPanel;
    private javax.swing.JLayeredPane OrderPane;
    private javax.swing.JPanel OrderPanel;
    private javax.swing.JPanel OrdreNewPanel;
    private javax.swing.JPanel OrdreUpdatePanel;
    private javax.swing.JPanel ProductNewPanel;
    private javax.swing.JLayeredPane ProductPane;
    private javax.swing.JPanel ProductPanel;
    private javax.swing.JPanel SupplierNewPanel;
    private javax.swing.JLayeredPane SupplierPane;
    private javax.swing.JPanel SupplierPanel;
    private javax.swing.JPanel SupplierUpdatePanel;
    private javax.swing.JButton btnAddProductNew;
    private javax.swing.JButton btnAddProductUpdate;
    private javax.swing.JButton btnAddSupplierNew;
    private javax.swing.JButton btnAddSupplierUpdate;
    private javax.swing.JButton btnCancelSupplierUpdate;
    private javax.swing.JButton btnCancelUpdate;
    private javax.swing.JButton btnDeleteCustomer;
    private javax.swing.JButton btnFindNew;
    private javax.swing.JButton btnFindNew1;
    private javax.swing.JButton btnInsertCustomer;
    private javax.swing.JButton btnInsertSupplierNew;
    private javax.swing.JButton btnOrdreInsert;
    private javax.swing.JButton btnOrdreUpdate;
    private javax.swing.JButton btnProductCancel;
    private javax.swing.JButton btnProductCreate;
    private javax.swing.JButton btnProductUpdate;
    private javax.swing.JButton btnProductUpdateClear;
    private javax.swing.JButton btnProductUpdateDelete;
    private javax.swing.JButton btnRemoveProductNew;
    private javax.swing.JButton btnRemoveProductSupNew;
    private javax.swing.JButton btnRemoveProductUpdate;
    private javax.swing.JButton btnRemoveSupplierUpdate;
    private javax.swing.JButton btnSupplierUpdate;
    private javax.swing.JButton btnUpdateCustomer;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JCheckBox chkNewClothing;
    private javax.swing.JCheckBox chkNewEquipment;
    private javax.swing.JCheckBox chkNewGunReplicas;
    private javax.swing.JCheckBox chkUpdateCloth;
    private javax.swing.JCheckBox chkUpdateEquipment;
    private javax.swing.JCheckBox chkUpdateGunReplicas;
    private java.awt.Choice ddlCustomer;
    private java.awt.Choice ddlOrder;
    private java.awt.Choice ddlPickProductUpdate;
    private java.awt.Choice ddlProduct;
    private java.awt.Choice ddlStatusNew;
    private java.awt.Choice ddlStatusNew1;
    private java.awt.Choice ddlStatusUpdate;
    private java.awt.Choice ddlSupplier;
    private java.awt.Choice ddlSupplierChooseNew;
    private java.awt.Choice ddlSupplierChooseUpdate;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel lblAmountNew;
    private javax.swing.JLabel lblAmountNew1;
    private javax.swing.JLabel lblCustomerNew;
    private javax.swing.JLabel lblCustomerNew1;
    private javax.swing.JLabel lblCustomerNew10;
    private javax.swing.JLabel lblCustomerNew11;
    private javax.swing.JLabel lblCustomerNew12;
    private javax.swing.JLabel lblCustomerNew14;
    private javax.swing.JLabel lblCustomerNew15;
    private javax.swing.JLabel lblCustomerNew16;
    private javax.swing.JLabel lblCustomerNew17;
    private javax.swing.JLabel lblCustomerNew18;
    private javax.swing.JLabel lblCustomerNew19;
    private javax.swing.JLabel lblCustomerNew2;
    private javax.swing.JLabel lblCustomerNew20;
    private javax.swing.JLabel lblCustomerNew21;
    private javax.swing.JLabel lblCustomerNew22;
    private javax.swing.JLabel lblCustomerNew23;
    private javax.swing.JLabel lblCustomerNew24;
    private javax.swing.JLabel lblCustomerNew25;
    private javax.swing.JLabel lblCustomerNew26;
    private javax.swing.JLabel lblCustomerNew27;
    private javax.swing.JLabel lblCustomerNew28;
    private javax.swing.JLabel lblCustomerNew29;
    private javax.swing.JLabel lblCustomerNew3;
    private javax.swing.JLabel lblCustomerNew30;
    private javax.swing.JLabel lblCustomerNew31;
    private javax.swing.JLabel lblCustomerNew32;
    private javax.swing.JLabel lblCustomerNew33;
    private javax.swing.JLabel lblCustomerNew34;
    private javax.swing.JLabel lblCustomerNew35;
    private javax.swing.JLabel lblCustomerNew36;
    private javax.swing.JLabel lblCustomerNew37;
    private javax.swing.JLabel lblCustomerNew38;
    private javax.swing.JLabel lblCustomerNew39;
    private javax.swing.JLabel lblCustomerNew4;
    private javax.swing.JLabel lblCustomerNew5;
    private javax.swing.JLabel lblCustomerNew6;
    private javax.swing.JLabel lblCustomerNew7;
    private javax.swing.JLabel lblCustomerNew8;
    private javax.swing.JLabel lblCustomerNew9;
    private javax.swing.JLabel lblDeliveryNew;
    private javax.swing.JLabel lblDeliveryNew1;
    private javax.swing.JLabel lblStatusNew;
    private javax.swing.JLabel lblStatusNew1;
    private javax.swing.JList lstChooseCNew;
    private javax.swing.JList lstChooseCUpdate;
    private javax.swing.JList lstProductOverviewNew;
    private javax.swing.JList lstProductOverviewUpdate;
    private javax.swing.JList lstSupplierOverviewNew1;
    private javax.swing.JList lstSupplierOverviewUpdate;
    private javax.swing.JPanel productUpdatePanel;
    private javax.swing.JTextField txtAddressNew;
    private javax.swing.JTextField txtAddressUpdate;
    private javax.swing.JTextField txtAmount;
    private javax.swing.JTextField txtAmountUpdate;
    private javax.swing.JTextField txtCityNew;
    private javax.swing.JTextField txtCityUpdate;
    private javax.swing.JTextField txtCustomerID;
    private javax.swing.JTextField txtCvrOpretNew;
    private javax.swing.JTextField txtCvrUpdate;
    private javax.swing.JTextField txtDeliveryDate;
    private javax.swing.JTextField txtDeliveryDateUpdate;
    private javax.swing.JTextField txtFindCustomerNew;
    private javax.swing.JTextField txtFindCustomerUpdate;
    private javax.swing.JTextField txtNameNew;
    private javax.swing.JTextField txtNameNew1;
    private javax.swing.JTextField txtNameUpdate;
    private javax.swing.JTextField txtPhoneNew;
    private javax.swing.JTextField txtPhoneUpdate;
    private javax.swing.JTextField txtProductCalibre;
    private javax.swing.JTextField txtProductColour;
    private javax.swing.JTextField txtProductDescription;
    private javax.swing.JTextField txtProductFabric;
    private javax.swing.JTextField txtProductLeverandørID;
    private javax.swing.JTextField txtProductName;
    private javax.swing.JTextField txtProductOrigin;
    private javax.swing.JTextField txtProductProductID;
    private javax.swing.JTextField txtProductPurchasePrice;
    private javax.swing.JTextField txtProductRentPrice;
    private javax.swing.JTextField txtProductSalesPrice;
    private javax.swing.JTextField txtProductSize;
    private javax.swing.JTextField txtProductType;
    private javax.swing.JTextField txtProductUpdateCalibre;
    private javax.swing.JTextField txtProductUpdateColour;
    private javax.swing.JTextField txtProductUpdateDescription;
    private javax.swing.JTextField txtProductUpdateFabric;
    private javax.swing.JTextField txtProductUpdateMinStock;
    private javax.swing.JTextField txtProductUpdateName;
    private javax.swing.JTextField txtProductUpdateOrigin;
    private javax.swing.JTextField txtProductUpdateProduct;
    private javax.swing.JTextField txtProductUpdatePurchasePrice;
    private javax.swing.JTextField txtProductUpdateRentPrice;
    private javax.swing.JTextField txtProductUpdateSalesPrice;
    private javax.swing.JTextField txtProductUpdateSize;
    private javax.swing.JTextField txtProductUpdateSupplier;
    private javax.swing.JTextField txtProductUpdateType;
    private javax.swing.JTextField txtSupplierAdressNew;
    private javax.swing.JTextField txtSupplierAdressUpdate;
    private javax.swing.JTextField txtSupplierCountryNew;
    private javax.swing.JTextField txtSupplierCountryUpdate;
    private javax.swing.JTextField txtSupplierEmailNew;
    private javax.swing.JTextField txtSupplierEmailUpdate;
    private javax.swing.JTextField txtSupplierNavnNew;
    private javax.swing.JTextField txtSupplierNavnUpdate;
    private javax.swing.JTextField txtSupplierPhoneNew;
    private javax.swing.JTextField txtSupplierPhoneUpdate;
    private javax.swing.JTextField txtZipUpdate;
    // End of variables declaration//GEN-END:variables

    private void clearFields() {
        txtProductUpdateColour.setText("");
    txtProductUpdateDescription.setText("");
    txtProductUpdateFabric.setText("");
    txtProductUpdateMinStock.setText("");
    txtProductUpdateName.setText("");
    txtProductUpdateOrigin.setText("");
    txtProductUpdateProduct.setText("");
    txtProductUpdatePurchasePrice.setText("");
    txtProductUpdateRentPrice.setText("");
    txtProductUpdateSalesPrice.setText("");
    txtProductUpdateSize.setText("");
    txtProductUpdateSupplier.setText("");
    txtProductUpdateType.setText("");  
    }


}
